package com.maccman.aireo.model
{
	import mx.collections.ArrayCollection;
	import mx.collections.ICollectionView;
   
	import com.adobe.cairngorm.model.ModelLocator;
	import com.maccman.aireo.vo.*;
	import com.maccman.activeresource.IndexedCollection;
   
	[Bindable]
	public class AireoModelLocator implements ModelLocator {
		private static var modelLocator : AireoModelLocator;
      
    public static function getInstance() : AireoModelLocator {
    	if ( modelLocator == null ) {
      	modelLocator = new AireoModelLocator();
      }
			return modelLocator;
		}
      
		//Constructor should be private but current AS3.0 does not allow it yet (?)...
		public function AireoModelLocator() {	
			if ( modelLocator != null ) {
				throw new Error( "Only one AireoModelLocator instance should be instantiated" );	
			}
		}
   
		/* bindables go here */
		public var assets:IndexedCollection;
	}
}
